Skip to main content

focusedObject

Type

function

Summary

Returns the currently focused control.

Syntax

the focusedObject
focusedObject()

Description

Use the focusedObject function to determine which object receives any keystrokes that are typed by the user or created by the type command.

The focusedObject can be any control on the current card. If no object has the focus, the focusedObject is the current card.

Examples

the focusedObject
put the focusedObject into objectToReturnTo

glossary: object, property, current card, command, return, active control

keyword: control

property: ID

command: focus, type

control structure: function

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?